package cn.iocoder.yudao.module.design.enums.design;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum YesNoEnum {
    /**
     * 正常
     */
    YES_NO_ENUM_0(0,"是"),

    /**
     * 失效
     */
    YES_NO_ENUM_1(1,"否");

    /**
     * 状态
     */
    private final Integer code;

    /**
     * 状态
     */
    private final String name;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(YesNoEnum::getCode).toArray();
}
